@extends('admin.master')

@section('content')
<h1>Crear <small>Categor&iacute;a de objeto</small></h1>

        <!-- if there are creation errors, they will show here -->
        @if($errors->has())
        <div class="alert alert-danger">{{ HTML::ul($errors->all()) }}</div>
        @endif

        {{ Form::open(['url' => 'admin/tagobjs']) }}
        <div class="row">
            <div class="col-lg-10">
                <div class="form-group">
                    {{ Form::label('nombre', 'Nombre') }}
                    {{ Form::text('nombre', Input::old('nombre'), array('class' => 'form-control')) }}
                </div>
            </div>
            <div class="col-lg-2">
                {{ Form::label('publicar', 'Publicar') }}<br>
                {{ Form::button('<span class="ladda-label">Crear</span>', ['type' => 'submit', 'class' => 'ladda-button btn btn-primary', 'data-style'=>'zoom-in']) }}
                {{ HTML::link('admin/tagobjs', 'Cancelar', ['class' => 'btn btn-default']) }}
            </div>
        </div>
        {{ Form::close() }}
@stop

@section('js-footer')
@parent
{{ HTML::script('assets/admin/js/scripts.js') }}
@stop